﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Mvc;
using System.ComponentModel.Composition;

namespace Kooboo.Commerce.Promotions.CouponCode
{
    [Export(typeof(AreaRegistration))]
    public class CouponAreaRegistration : AreaRegistration
    {
        public override string AreaName
        {
            get { return "Commerce"; }
        }

        public override void RegisterArea(AreaRegistrationContext context)
        {
            context.MapRoute(
                 "commerce/shop/promotions/extensions/couponcode",
                 "commerce/shop/promotions/extensions/couponcode/{id}",
                 new { controller = "CouponCode", action = "Index", id = UrlParameter.Optional, AreaName = this.AreaName });
        }
    }
}
